﻿@model IEnumerable<GSLMS.Entity.TB_APP_REGINFO>
@{
    Layout = null;
    ViewBag.ViewTitle = "申请登记";
    int i = 1;
    var SearchParma = ViewData["SearchParma"] as GSLMS.Entity.TB_APP_REGINFO ?? new GSLMS.Entity.TB_APP_REGINFO();
    
}
<div id="divSelector">
    <form id="pagerForm" method="get" action="DianDang/Apply/ApplyList/Selector?action=page&OpID=@ViewData["OperateID"]">
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="numPerPage" value="@ViewData["pageSize"]" />
    <input type="hidden" name="RowCount" value="@ViewData["RowCount"]" />
    <input type="hidden" name="CUSTNAME" value="@SearchParma.CUSTNAME" />
    <input type="hidden" name="CUSTNO" value="@SearchParma.CUSTNO" />
    <input type="hidden" name="STATUS" value="@SearchParma.STATUS" />
    <input type="hidden" name="BUSSTYPE" value="@SearchParma.BUSSTYPE" />
    </form>
    <div class="pageHeader">
        <form onsubmit="return divSearch(this,'divSelector')" id="Form_@ViewData["CurrentController"]" action="DianDang/Apply/ApplyList/Selector?action=search&OpID=@ViewData["OperateID"]"
    method="post">
        <input type="hidden" name="STATUS" value="@SearchParma.STATUS" />
        <input type="hidden" name="BUSSTYPE" value="@SearchParma.BUSSTYPE" />
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <td>
                        客户名称：
                    </td>
                    <td>
                        @Html.TextBox("CUSTNAME", SearchParma.CUSTNAME)
                    </td>
                    <td>
                        证件号码：
                    </td>
                    <td>
                        @Html.TextBox("CUSTNO", SearchParma.CUSTNO)
                    </td>
                    <td align="right">
                        <div class="subBar">
                            <ul>
                                <li>
                                    <div class="buttonActive">
                                        <div class="buttonContent">
                                            <button type="submit" name="submit">
                                                检索</button></div>
                                    </div>
                                </li>
                                <li>
                                    <div class="buttonActive">
                                        <div class="buttonContent">
                                            <button type="reset" name="reset">
                                                重置</button></div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        </form>
    </div>
    <div class="pageContent">
        <table class="list" width="100%" layouth="5">
            <thead>
                <tr class="header">
                    <th style="width: 60px">
                        序号
                    </th>
                    <th>
                        客户名称
                    </th>
                    <th>
                        证件号码
                    </th>
                    <th>
                        来源渠道
                    </th>
                    <th>
                        业务员
                    </th>
                    <th>
                        登记时间
                    </th>
                    <th>
                        最后跟进时间
                    </th>
                    <th>
                        重要级别
                    </th>
                    <th>
                        状态
                    </th>
                    <th>
                        选择
                    </th>
                </tr>
            </thead>
            @foreach (var item in Model)
            {            
                <tr>
                    <td>
                        @i
                    </td>
                    <td>
                        @item.CUSTNAME
                    </td>
                    <td>
                        @item.CUSTNO
                    </td>
                    <td>
                        @item.SOURCE
                    </td>
                    <td>
                        @item.SALESMAN
                    </td>
                    <td>
                        <span formatdate="yyyy-MM-dd">@item.REGDATE</span>
                    </td>
                    <td>
                        <span formatdate="yyyy-MM-dd">@item.LASTFLOWDATE</span>
                    </td>
                    <td>
                        @item.IMPORTANTLEVEL
                    </td>
                    <td>
                        @((GSLMS.Entity.Enum.ApplyEnum.RegStatus)item.STATUS)
                    </td>
                    <td>
                        <a href='DianDang/Apply/ProInfo/@(SearchParma.BUSSTYPE.Equals(3) ? "CreateHouInfo" : "Create")?regid=@item.ID' target="ajax" rel="divSelector" class="btnEdit">
                            选择</a>
                    </td>
                </tr>
                i += 1;
            }
        </table>
    </div>
</div>
